DataView.xaml.cs
Language: C#
Last Modified: 2020-06-27 1:58:33 PM UTC
File Size: 1029 bytes
Last Modified: 2020-06-27 1:58:33 PM UTC
File Size: 1029 bytes
http://www.penguinstew.ca/example/dataviewer/View/DataView.xaml.cs
using System.Windows;
using DataViewer.ViewModel;
using Penguin.MVVMBase.ViewBase;
using Penguin.MVVMBase.ViewModelBase;
namespace DataViewer.View
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class DataView : WindowViewBase
{
public DataView() : base(new DataViewViewModel())
{
InitializeComponent();
}
/// <summary>
/// Opens the ServerSelector view when requested
/// </summary>
/// <param name="sender">The view model requesting the view</param>
/// <param name="e">Contains the viewModel of the view being requested</param>
protected override void m_viewModel_ViewRequested(object sender, RequestViewArgs e)
{
if (e.ViewModel is ServerSelectorViewModel)
{
ServerSelector view = new ServerSelector((IDialogViewModel)e.ViewModel);
OpenView(view);
}
}
}
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32